<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateDapeiTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('dapei', function (Blueprint $table) {
            $table->increments('id');
            $table->string('imgurl')->nullable()->comment('图片');
            $table->string('hun')->nullable()->comment('荤菜');
            $table->string('su')->nullable()->comment('素菜');
            $table->unsignedDecimal('price',11,2)->default('0.00')->nullable()->comment('金额');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('dapei');
    }
}
